﻿using System;
using System.Windows.Forms;

namespace Orid.Management.Statistics.Tools.Decomposition.UI
{
    public partial class FormSearchDecompositionConditions : Form
    {
        public FormSearchDecompositionConditions()
        {
            InitializeComponent();
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            Logic.SearchDecompositionConditions.GetInstance().StarDateTime = DateTime.SpecifyKind(this.dateTimePickerStart.Value, DateTimeKind.Local);
            Logic.SearchDecompositionConditions.GetInstance().FinishDateTime = DateTime.SpecifyKind(this.dateTimePickerFinish.Value, DateTimeKind.Local);

            Logic.SearchDecompositionConditions.GetInstance().IsAllOrders = this.checkBoxAllOrder.Checked;
           
        }
    }
}
